#!/bin/sh

echo "*** Process for DJBDNS service ***"

if [ ! -f /var/run/djbdns.pid ] ; then
	if [ -f /var/lock/subsys/djbdns ] ; then
		'rm' -f /var/lock/subsys/djbdns
	fi
fi

echo "  - Process: dnsnotify"
for i in $(ls /opt/configs/djbdns/conf/master) ; do
	sh /script/dnsnotify ${i}
done

echo "  - Process: restart"
/etc/rc.d/init.d/djbdns stop
pkill -9 djbdns
/etc/rc.d/init.d/djbdns start

